
<template>
	<view class="container">
		
		<view v-if="info.ListType==8" class="page-about">
			<jyf-parser :html="info.Content" ref="article"></jyf-parser>
		</view>
		
	</view>

</template>
<script>
	
	import jyfParser from "@/components/jyf-parser/jyf-parser";
	export default {
		components: {
			jyfParser
		},
		data() {
			return {
				info:{},
			}
		},
		onLoad(option) {
			var then=this
			this.$request.post(this.$api.content.cate,{id:option.id},'form').then(res=>{
				then.info=res.data
				uni.setNavigationBarTitle({
				    title: res.data.Name
				});
			})
		},
		onShareAppMessage: function () {
			return this.share()
		},
		onShareTimeline:function (){
			return this.share()
		},
		methods: {
			share(){
				var user=this.$storage.getJson('userinfo')
				var fid = ''
				if(user&&user.UserID){
					fid = user.UserID
				}
				return {
					title:"AI侠",
					desc:'AI侠',
					query:'fid='+fid,
					path:'/pages/index/index?fid='+fid
				}
			}
		}
	}
</script>

<style>
	
</style>
